package com.pxxy.toturial.service;

import com.pxxy.toturial.entity.Account;

/*****
 * 业务层接口
 */
public interface AccountService {

    /****
     * 向指定帐户中存入 money
     * @param account
     * @param money
     * @return
     */
    int deposit(Account account, double money);

    /*************
     * 取钱
     * @param account
     * @param money
     * @return
     */
    int withdraw(Account account, double money);

    /************
     * 转帐
     * @param from
     * @param target
     * @param money
     * @return
     */
    int transfer(Account from, Account target, double money);
}
